package cn.edu.buu.hospital.service;

import cn.edu.buu.hospital.entity.Department;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface DepartmentService {
    void add(Department department);
    void removeById(Long deptId);
    void modify(Department department);
    Department findById(Long deptId);
    List<Department> findAll();
    PageInfo<Department> find(int pageNum, int pageSize, Department condition);

    long findTotal();

    List<Department> findTopNum(int i);
    
    // 根据医院ID查找科室
    List<Department> findByHospitalId(Long hospitalId);
}